package com.ajaxlord.confluence.plugin.json.actions;

import com.atlassian.confluence.spaces.SpaceManager;

import java.util.List;

public class DashboardAction extends JSONActionSupport {
    private SpaceManager spaceManager;

    public List getSpaces() {
        return getSpaceManager().getPermittedSpaces(getRemoteUser());
    }

    public SpaceManager getSpaceManager() {
        return spaceManager;
    }

    public void setSpaceManager(SpaceManager spaceManager) {
        this.spaceManager = spaceManager;
    }
}
